import { name } from 'file-loader'
import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/components/Login.vue';

Vue.use(Router)

export default new Router({
  routes: [
    {
      path:'/',
      name:'wallpaper-mall',
      component:require('@/components/Page').default
    },

    {
      path: '/landingpage',
      name: 'landing-page',
      component: require('@/components/LandingPage').default
    },

    {
      path:'/mypages',
      name:'my-pages',
      component:require('@/components/Page2').default
    },
    {
      path:'/shangchuanpages',
      name:'shangchuan-pages',
      component:require('@/components/ShangchuanPage').default
    },
    {
      path: '/login',
      name: 'Login',
      component: require('@/components/Login').default
    },
    {
      path:'/setwallpaper',
      name:'set-wallpaper',
      component:require('@/components/SetWallpaper').default
    },
    // // {
    //   path:'/image',
    //   name:'img-list-horizontal',
    //   component:require('@/components/')
    // }
    {
      path: '*',
      redirect: '/'
    }
  ]
})
